package top.lcm889.juc.count_down_latch.demo2;

import java.util.concurrent.CountDownLatch;

/**
 * @author Coder-lcm
 * @date 2021/6/4
 */
public class Test{
    public static void main(String[] args) {
        int MAX_CUSTOMER_THREAD = 4;
        CountDownLatch latch = new CountDownLatch(MAX_CUSTOMER_THREAD);
        new MyThread2(latch, "Winter").start();
        for (int i = 0; i < MAX_CUSTOMER_THREAD; i++) {
            new MyThread1(latch, "Customer-" + i).start();
        }


    }
}
